Platform Explorer / Nuxeo Platform 2023.10

Operation Document.MoveCollectionMember (Reorder members of a collection)

Description

Move member1 of a collection right after member2 of the same collection. If member2 is not sepcified, the member1 is moved to first position. Returns true if successfully moved.
Operation id Document.MoveCollectionMember
Category Document
Label Reorder members of a collection
Requires
Since

Parameters

Name Description Type Required Default value
member1 document yes  
member2 document no  

Signature

Inputs document
Outputs boolean

Implementation Information

Implementation Class Class: org.nuxeo.ecm.automation.core.operations.collections.MoveCollectionMemberOperation
Contributing Component org.nuxeo.ecm.core.automation.features.operations

JSON Definition

{
  "id" : "Document.MoveCollectionMember",
  "label" : "Reorder members of a collection",
  "category" : "Document",
  "requires" : null,
  "description" : "Move member1 of a collection right after member2 of the same collection. If member2 is not sepcified, the member1 is moved to first position. Returns true if successfully moved.",
  "url" : "Document.MoveCollectionMember",
  "signature" : [ "document", "boolean" ],
  "params" : [ {
    "name" : "member1",
    "description" : null,
    "type" : "document",
    "required" : true,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "member2",
    "description" : null,
    "type" : "document",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  } ]
}